﻿using System;
using XUpdater;
using XUtliPoolLib;

namespace XMainClient
{
	// Token: 0x02000945 RID: 2373
	internal class XLuaDocument : XDocComponent
	{
		// Token: 0x17002C29 RID: 11305
		// (get) Token: 0x06008F83 RID: 36739 RVA: 0x00142284 File Offset: 0x00140484
		public override uint ID
		{
			get
			{
				return XLuaDocument.uuID;
			}
		}

		// Token: 0x06008F84 RID: 36740 RVA: 0x0014229C File Offset: 0x0014049C
		public override void OnDetachFromHost()
		{
			ILuaEngine xluaEngine = XSingleton<XUpdater.XUpdater>.singleton.XLuaEngine;
			xluaEngine.hotfixMgr.OnDetachFromHost();
			base.OnDetachFromHost();
		}

		// Token: 0x06008F85 RID: 36741 RVA: 0x001422C8 File Offset: 0x001404C8
		public override void OnAttachToHost(XObject host)
		{
			base.OnAttachToHost(host);
			ILuaEngine xluaEngine = XSingleton<XUpdater.XUpdater>.singleton.XLuaEngine;
			xluaEngine.hotfixMgr.OnAttachToHost();
		}

		// Token: 0x06008F86 RID: 36742 RVA: 0x001422F8 File Offset: 0x001404F8
		public override void OnLeaveScene()
		{
			ILuaEngine xluaEngine = XSingleton<XUpdater.XUpdater>.singleton.XLuaEngine;
			xluaEngine.hotfixMgr.OnLeaveScene();
			base.OnLeaveScene();
		}

		// Token: 0x06008F87 RID: 36743 RVA: 0x00142324 File Offset: 0x00140524
		public override void OnEnterScene()
		{
			base.OnEnterScene();
			ILuaEngine xluaEngine = XSingleton<XUpdater.XUpdater>.singleton.XLuaEngine;
			xluaEngine.hotfixMgr.OnEnterScene();
		}

		// Token: 0x06008F88 RID: 36744 RVA: 0x00142350 File Offset: 0x00140550
		public override void OnEnterSceneFinally()
		{
			base.OnEnterSceneFinally();
			ILuaEngine xluaEngine = XSingleton<XUpdater.XUpdater>.singleton.XLuaEngine;
			xluaEngine.hotfixMgr.OnEnterSceneFinally();
		}

		// Token: 0x06008F89 RID: 36745 RVA: 0x0014237C File Offset: 0x0014057C
		protected override void OnReconnected(XReconnectedEventArgs arg)
		{
			ILuaEngine xluaEngine = XSingleton<XUpdater.XUpdater>.singleton.XLuaEngine;
			xluaEngine.hotfixMgr.OnReconnect();
		}

		// Token: 0x04002F25 RID: 12069
		public new static readonly uint uuID = XSingleton<XCommon>.singleton.XHash("XLuaDocument");
	}
}
